
import request from '@/utils/request'

export function GetPageOfBusinessByCompany(productName,businessStatus,page, pageSize) {
  return request({
    url: '/companymanage/GetPageOfBusinessByCompany',
    method: 'get',
    params: {
    productName,
    businessStatus,
    page: page,
    pageSize: pageSize
    }
  })
}



//pass
export function DoPass(id) {
  return request({
    url: 'companymanage/DoPass',
    method: 'get',
    params: {
      id: id
    }
  })
}



//reject
export function DoReject(id) {
  return request({
    url: 'companymanage/DoReject',
    method: 'get',
    params: {
      id: id
    }
  })
}

//byid
export function GetBusinessByIdforCompany(id){
  return request({
    url: 'companymanage/GetBusinessByIdforCompany',
    method: 'get',
    params: {
      id: id
    }
  })
}

export function updateNoticeStatus(id){
  return request({
    url: 'companymanage/updateNoticeStatus',
    method: 'get',
    params: {
      id: id
    }
  })
}

export function doConfirmAwait(id,remark){
  return request({
    url: 'companymanage/doConfirmAwait',
    method: 'get',
    params: {
      id: id,
      remark:remark
    }
  })
}


export function DoConfirmSign(id,remark){
  return request({
    url: 'companymanage/DoConfirmSign',
    method: 'get',
    params: {
      id: id,
      remark:remark
    }
  })
}


export function addMoneyBack(id,amount,remark){
  return request({
    url: 'companymanage/addMoneyBack',
    method: 'get',
    params: {
      id: id,
      amount:amount,
      remark:remark
    }
  })
}

export function modifyMoneyBack(id,bid,amount,remark){
  return request({
    url: 'companymanage/modifyMoneyBack',
    method: 'get',
    params: {
      id:id,
      bid: bid,
      amount:amount,
      remark:remark
    }
  })
}



export function getMoneyBackList(id){
  return request({
    url: 'companymanage/getMoneyBackList',
    method: 'get',
    params: {
      id: id
    }
  })
}

